﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="aspnetmsaccess._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    
        <asp:GridView ID="GridView1" runat="server" 
            EnableModelValidation="True" AutoGenerateColumns="False">

            <Columns> 
                
                <asp:TemplateField HeaderText="Select"> 
                    <ItemTemplate> 
                        <asp:CheckBox ID="chkSelect" runat="server" /> 
                    </ItemTemplate> 
                </asp:TemplateField>
                             
                <asp:BoundField HeaderText="ID" DataField="ID" />  
                <asp:BoundField HeaderText="Title" DataField="Title" />   
            </Columns> 
        </asp:GridView>
    
    
    </div>
    <asp:Button ID="btnGetSelectedRecords" runat="server" 
        onclick="btnGetSelectedRecords_Click" Text="Button" />
    <br />
    selected rows: 
    <asp:Label ID="lblSelectedRows" runat="server"></asp:Label>
    </form>
</body>
</html>
